package com.acme.task2;

public class Foo {
	
    private int iterationNo = 0;

    public Foo(int iterationNo) {
    	this.iterationNo = iterationNo;
    }
    
	@Override
	protected void finalize() throws Throwable {
		//TODO: print to console that finalize() was called
		System.out.format("finalize() was called on %d iteration%n", iterationNo);
		super.finalize();
	}

}
